package com.vue.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

@TableName("category")
public class CateGory implements Serializable {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    @TableField("name")
    private String name;
    @TableField("level")
    private Integer level;
    @TableField("upperID")
    private Integer upperID;

    @Override
    public String toString() {
        return "CateGory{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", level=" + level +
                ", upperID=" + upperID +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Integer getUpperID() {
        return upperID;
    }

    public void setUpperID(Integer upperID) {
        this.upperID = upperID;
    }
}
